﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TeamBuy.AccessWebUI.Components
{
    public partial class Head_LoginLink : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void lbtnLogin_Click(object sender, EventArgs e)
        {
            if (Request.QueryString["RURL"] == "" || Request.QueryString["RURL"] == null)
            {
                Response.Redirect("~/Login.aspx?RURL=" + HttpUtility.UrlEncode(Request.RawUrl.ToString()));
            }
            else
            {
                Response.Redirect("~/Login.aspx?RURL=" + HttpUtility.UrlEncode(Request.QueryString["RURL"]));
            }
        }


    }
}